'Declaration<ExtensionAttribute()> <JetBrains.Annotations.CanBeNullAttribute()> Public Overloads Shared Function ReadOptionalValue(Of TValue)( _ ByVal client As IEasyUAClient, _ ByVal readArguments As UAReadArguments _ ) As ValueResult(Of TValue)
'UsageDim client As IEasyUAClient Dim readArguments As UAReadArguments Dim value As ValueResult(Of TValue) value = IEasyUAClientExtension2.ReadOptionalValue(Of TValue)(client, readArguments)
[Extension()] [JetBrains.Annotations.CanBeNull()] public static ValueResult<TValue> ReadOptionalValue<TValue>( IEasyUAClient client, UAReadArguments readArguments )
[Extension()] [JetBrains.Annotations.CanBeNull()] public: static ValueResult<TValue^>^ ReadOptionalValuegeneric<typename TValue> ( IEasyUAClient^ client, UAReadArguments^ readArguments )
Parameters
- client
- The client object that will perform the operation.
The value of this parameter cannot be
null(Nothingin Visual Basic). - readArguments
- An arguments object that specifies what to read from the OPC-UA server.
The value of this parameter cannot be
null(Nothingin Visual Basic).
Type Parameters
- TValue
- The type to convert the attribute value to.
Return Value
This method can return null (Nothing in Visual Basic).